package edu.jd.software.web.backend.mongodb.document;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;


@Data
@EqualsAndHashCode
@Document
public class MemberReadHistory {
    @Id
    private String id;
    @Indexed
    @Schema(description = "会员ID")
    private Long memberId;
    @Schema(description = "昵称")
    private String memberNickname;
    @Schema(description = "头像")
    private String memberIcon;
    @Indexed
    @Schema(description = "头像")
    private Long productId;
    @Schema(description = "商品名字")
    private String productName;
    @Schema(description = "商品图片")
    private String productPic;
    @Schema(description = "商品子标题")
    private String productSubTitle;
    @Schema(description = "商品价格")
    private String productPrice;
    @Schema(description = "创建日期")
    private Date createTime;
}
